@import '~antd/es/style/themes/default.less';
//
@header-height: 64px;
@header-line-height: 64px;
//
.global_header_wrapper {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  height: @header-height;
  position: relative;
  transition: background 0.3s, width 0.2s;
  width: 100%;
  .main {
    display: flex;
    height: 100%;
    padding-left: 24px;
  }
}

.header_logo {
  position: relative;
  height: @header-height;
  line-height: @header-line-height;
  overflow: hidden;
  transition: all 0.3s;
  width: 350px;
  & > div {
    display: inline-block;
    vertical-align: middle;
  }
  .img {
    height: 32px;
  }
  .title {
    font-family: PingFangSCRegular, Microsoft Yahei, Avenir, 'Helvetica Neue', Arial, Helvetica;
    font-size: 18px;
    font-weight: bolder;
    margin: 0 0 0 12px;
  }
}

.header_menu_wrapper {
  flex: 1 1 0%;
  overflow: hidden;
  :global {
    .ant-menu-horizontal {
      border: none;
      line-height: @header-line-height - 2;
    }
  }
}

.right {
  min-width: 116px;
  & > div {
    padding-right: 8px;
  }
}

@pro-header-hover-bg: rgba(0, 0, 0, 0.025);

.menu {
  :global(.anticon) {
    margin-right: 8px;
  }
  :global(.ant-dropdown-menu-item) {
    min-width: 160px;
  }
}

.right {
  float: right;
  height: 100%;
  margin-left: auto;
  overflow: hidden;
  .action {
    display: inline-block;
    height: 100%;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s;
    > i {
      color: @text-color;
      vertical-align: middle;
    }
    &:hover {
      background: @pro-header-hover-bg;
    }
    &:global(.opened) {
      background: @pro-header-hover-bg;
    }
  }
  .search {
    padding: 0 12px;
    &:hover {
      background: transparent;
    }
  }
  .account {
    .avatar {
      margin: ~'calc((@{layout-header-height} - 24px) / 2)' 0;
      margin-right: 8px;
      color: @primary-color;
      vertical-align: top;
      background: rgba(255, 255, 255, 0.85);
    }
  }
}

.dark {
  height: @layout-header-height;
  .action {
    color: rgba(255, 255, 255, 0.85);
    > i {
      color: rgba(255, 255, 255, 0.85);
    }
    &:hover,
    &:global(.opened) {
      background: @primary-color;
    }
  }
}

:global(.ant-pro-global-header) {
  .dark {
    .action {
      color: @text-color;
      > i {
        color: @text-color;
      }
      &:hover {
        color: rgba(255, 255, 255, 0.85);
        > i {
          color: rgba(255, 255, 255, 0.85);
        }
      }
    }
  }
}

@media only screen and (max-width: @screen-md) {
  :global(.ant-divider-vertical) {
    vertical-align: unset;
  }
  .name {
    display: none;
  }
  .right {
    position: absolute;
    top: 0;
    right: 12px;
    .account {
      .avatar {
        margin-right: 0;
      }
    }
  }
}

.bellCss {
  font-size: 18px;
  display: flex;
  align-items: center;
  :global {
    .ant-badge {
      font-size: 20px;
    }
  }
}
.bellCss:hover {
  cursor: pointer;
}

.exportcss {
  width: 1300px !important;
  :global {
    .ant-modal-body {
      padding: 24px;
      font-size: 14px;
      line-height: 1.5;
      word-wrap: break-word;
      height: 500px;
      overflow: scroll;
    }
    .ant-table-thead > tr > th:first-child {
      width: 10%;
    }
    .ant-table-thead > tr > th:last-child {
      width: 10%;
    }
  }
}
